package com.lovo.project.enums;

import lombok.Getter;

/**
 * @title 权限状态枚举
 * @author: luo
 * @date: 2020/11/3 20:46
 */
@Getter
public enum PermissionCodeEnum {
    /**权限添加异常*/
    PERMISSION_ADD_ERROR(2133,"添加权限异常"),
    /**权限修改异常*/
    PERMISSION_UPDATE_ERROR(4133,"修改权限异常"),
    /**权限删除异常*/
    PERMISSION_DELETE_ERROR(3133,"删除权限异常"),
    /**权限查找异常*/
    PERMISSION_FIND_ERROR(5133,"查询权限异常"),
    /**未知异常*/
    PERMISSION_UNKNOWN_ERROR(9999,"发生未知异常");

    /**状态码*/
    private Integer code;
    /**状态信息*/
    private String msg;

    PermissionCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
